package api.app;
import java.io.IOException;
import org.json.JSONException;
import org.json.JSONObject;
import common.Host;
import common.Request;


public class ChangePassword {
	/**
	 * 实现帮忙医修改密码ChangPassword接口调用
	 * @param userAccount  -电话号码
	 * @param Password   -密码
	 * @return 接口返回数据
	 * @throws JSONException
	 * @throws IOException
	 */

	public static String post(String userAccount, String password)throws JSONException,IOException {
       String url = Host.getAddress()+ "/APIAccount/ChangePassword";   //拼接口地址
		
		JSONObject parms = new JSONObject();   
		parms.put("UserAccount", userAccount);                          //接口参数赋值
		parms.put("Password", password);
		
		String result = Request.post(url, parms);                      //调用接口并返回接口结果
    	return result;
	}
}
